﻿<Window x:Class="WPF_Testing_Application.wndMain"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Messaging Bus Test" Height="319" Width="527"
        WindowStartupLocation="CenterScreen"
        Loaded="Window_Loaded"
        Closing="Window_Closing">
    <Window.Resources>
        <Storyboard x:Key="waitShow">
            <DoubleAnimation To="1" Duration="0:0:1.6" Storyboard.TargetName="lLongOperation" Storyboard.TargetProperty="Opacity"/>
        </Storyboard>
        <Storyboard x:Key="waitHide">
            <DoubleAnimation To="0" Duration="0:0:0.5" Storyboard.TargetName="lLongOperation" Storyboard.TargetProperty="Opacity"/>
        </Storyboard>
    </Window.Resources>
    <StackPanel>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBox x:Name="tbFilename" />
            <Button x:Name="btOpen" Grid.Column="1" Content="Open" Click="btOpen_Click"/>
            <Button x:Name="btProcess" Grid.Column="2" Content="Process" Click="btProcess_Click"/>
        </Grid>
        <Label x:Name="lReport" Content="[Report goes here]"/>
        <Label x:Name="lLongOperation" Content="Please wait" FontSize="24" HorizontalAlignment="Center" Opacity="0"/>
        <Button x:Name="btSetWait" Content="Set long-taking wait" Click="btSetWait_Click"/>
        <Button x:Name="btAbortWait" Content="Abort long-taking wait" Click="btAbortWait_Click" IsEnabled="False"/>
        <Button x:Name="btPulse" Content="Pulse" Click="btPulse_Click"/>
        <Button x:Name="btStopLastOne" Content="Stop" Click="btStopLastOne_Click" />
    </StackPanel>
</Window>
